package cn.z2huo.usercenter.mapper.permission;

import cn.z2huo.usercenter.example.permission.PermissionDOExample;
import cn.z2huo.usercenter.model.dataobject.permission.PermissionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>该 Mapper 对应数据库表为 u_c_permission
 * <p>
 * 
 * @author z2huo
 * @date   2024-12-10
 */
@Mapper
public interface PermissionMapper {

    long countByExample(PermissionDOExample example);

    int deleteByExample(PermissionDOExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PermissionDO row);

    int insertSelective(PermissionDO row);

    List<PermissionDO> selectByExample(PermissionDOExample example);

    PermissionDO selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("row") PermissionDO row, @Param("example") PermissionDOExample example);

    int updateByExample(@Param("row") PermissionDO row, @Param("example") PermissionDOExample example);

    int updateByPrimaryKeySelective(PermissionDO row);

    int updateByPrimaryKey(PermissionDO row);
}